<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">

<ui:composition template="/WEB-INF/template/basicTemplate.xhtml">

	<ui:define name="content">
		<head>
		<title>
			<h:outputText value="#{msg.createAnswers}" />
		</title>
		</head>
		<br />
		<f:event listener="#{loginBean.verifyA()}" type="preRenderView"></f:event>

		<h:form>
		
			<div align="center">
			<h2></h2>
			<h:panelGrid columns="3" styleClass="inner-table login">
				<h:outputText value="#{msg.answer}:" />
				<h:inputText id="raspuns" value="#{raspunsBean.raspuns}" styleClass="inputText" 
				requiredMessage="Introduceti raspunsul!" required="true"/>
				<h:message for="raspuns" styleClass="errorMessage"/>
			</h:panelGrid>
			
			<h:commandButton
				value="#{msg.create}" styleClass="button" action="#{raspunsBean.create()}"/> <br></br>
			<h:commandButton
				value="#{msg.back}" styleClass="button" action="intrebariUpdate"  immediate="true"/> <br></br>
			<h:commandButton
				value="#{msg.logout}" styleClass="button" action="#{adminBean.logOut()}"  immediate="true"/> <br></br>
			</div>
		</h:form>
	</ui:define>

</ui:composition>

</html>






